package com.zmm.zebulon.starter.redis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * description: Cache 配置项
 *
 * @author zebulon
 * package com.zmm.zebulon.starter.redis.config
 * name: ZebulonCacheProperties
 * date 2024/1/7 14:25
 */
@ConfigurationProperties("zebulon.cache")
@Data
@Validated
public class ZebulonCacheProperties {

    /**
     * {@link #redisScanBatchSize} 默认值
     */
    private static final Integer REDIS_SCAN_BATCH_SIZE_DEFAULT = 30;

    /**
     * redis scan 一次返回数量
     */
    private Integer redisScanBatchSize = REDIS_SCAN_BATCH_SIZE_DEFAULT;

}
